package org.liziyi.pss.entity;

import java.util.concurrent.atomic.AtomicBoolean;

/**
 * cpu核心
 *
 * @author liziyi
 */
public class CpuCore {
    /**
     * cpu是否工作标志位
     */
    private AtomicBoolean working;

    private int pid;
    private int coreId;
    public CpuCore(int coreId){
        this.coreId=coreId;
        this.working=new AtomicBoolean(false);
    }
    public AtomicBoolean isWorking() {
        return working;
    }

    public int getPid() {
        return pid;
    }

    public int getCoreId() {
        return coreId;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public void setWorking(AtomicBoolean working) {
        this.working = working;
    }
}
